package Chain_of_Responsibility_Pattern.War;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        Officer bz,yz,pz,meet;
        bz=new Banzhang();
        pz=new Paizhang();
        yz=new Yingzhang();
        meet=new Meeting();
        bz.setOfficer(pz);
        pz.setOfficer(yz);
        yz.setOfficer(meet);
        Mission mission1=new Mission(8);
        bz.processRequest(mission1);
        Mission mission2=new Mission(12);
        bz.processRequest(mission2);
        Mission mission3=new Mission(51);
        bz.processRequest(mission3);
        Mission mission4=new Mission(201);
        bz.processRequest(mission4);
    }
}
